package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysDiet;
import com.jinghua.treatment.entity.SysShit;
import com.jinghua.treatment.mapper.SysDietMapper;
import com.jinghua.treatment.mapper.SysShitMapper;
import com.jinghua.treatment.service.SysDietService;
import com.jinghua.treatment.service.SysShitService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 饮食情况业务接口实现类
 * Created by 王兴光 on 2018/3/24.
 */
@Service("dietService")
public class SysDietServiceImpl implements SysDietService {

    @Resource
    private SysDietMapper dietMapper;

    @Override
    public SysDiet selectByPrimaryKey(Integer dietId) {
        return dietMapper.selectByPrimaryKey(dietId);
    }

    @Override
    public int insert(SysDiet record) {
        return dietMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(SysDiet record) {
        return dietMapper.updateByPrimaryKey(record);
    }
}
